//
//  FSCHud.h
//  FriendSchoolContacts
//
//  Created by 陈无忌 on 4/3/15.
//  Copyright (c) 2015 whalefin.Giab. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MBProgressHUD/MBProgressHUD.h>

typedef void (^HUDCompletionBlock)(void);

@interface GiabHUD : NSObject

//显示文字
+ (void)hudShowWithString:(NSString *)msg;

//显示标题文字和内容文字
+ (void)hudShowWithString:(NSString *)msg withDetailText:(NSString *)detailText;

//显示文字,显示完成后会有动作
+ (void)hudShowWithString:(NSString *)msg withCompletion:(HUDCompletionBlock)completionBlock;

//显示加载的菊花默认loading...
+ (MBProgressHUD*)showUIBlockingIndicator;

//显示加载的菊花可以自定义文字
+ (MBProgressHUD*)showUIBlockingIndicatorWithText:(NSString*)str;

//显示加载带文字,可设置消失时间 ps:圈圈不知道干嘛的
+ (MBProgressHUD*)showUIBlockingIndicatorWithText:(NSString*)str withTimeout:(int)seconds;

//显示加载带文字,圆形进度条,可设置进程
+ (MBProgressHUD*)showUIBlockingProgressIndicatorWithText:(NSString*)str andProgress:(float)progress;

//显示提示框 与19行的显示标题文字和内容文字一样的额
+ (MBProgressHUD*)showAlertWithTitle:(NSString*)titleText text:(NSString*)text;

//显示标题和文字,可设置消失时间
+ (MBProgressHUD*)showTimedAlertWithTitle:(NSString*)titleText text:(NSString*)text withTimeout:(int)seconds;

//显示标题和文字 会有动作方法ps:方法不好使
+ (MBProgressHUD*)showAlertWithTitle:(NSString*)titleText text:(NSString*)text target:(id)t action:(SEL)sel;

//隐藏loading框
+ (void)hideUIBlockingIndicator;

@end
